<?php

/*
 * 文件说明.
 * 
 * @author Kun Xu <kunx@jumei.com>
 */

/**
 * Description of ImageController
 *
 * @author 坤
 */
class ImageController extends Controller
{
    public function actionIndex()
    {
        $img = new Imagick;
        $img->newimage(80, 90, new ImagickPixel(sprintf('#%06x', 0xFFFFFF)));
        $img->writeimage('/home/xukun/tmp/demo.jpg');
        var_dump($img);
    }

}
